import java.io.Serializable;
import java.util.LinkedList;

/**
 * This class is the grades controller
 */
public class Grades implements Serializable{
	/**
	* Variables that will get the input from the GUI
	*/
	private String StudentID; 
	private String CourseID;
	private String SemesterID;
	private int Grade;  
	private String Eform;
	private String ClassID;
	private String TeacherID;
	
	
	
	/**
	 * @return the teacherID
	 */
	public String getTeacherID() {
		return TeacherID;
	}

	/**
	 * @param teacherID the teacherID to set
	 */
	public void setTeacherID(String teacherID) {
		TeacherID = teacherID;
	}

	/**
	 * @return the classID
	 */
	public String getClassID() {
		return ClassID;
	}

	/**
	 * @param ClassID the ClassID to set
	 */
	public void setClassID(String ClassID) {
		this.ClassID = ClassID;
	}

	public String getStudentID() {
		return StudentID;
	}

	public String getCourseID() {
		return CourseID;
	}

	public String getSemesterID() {
		return SemesterID;
	}

	public int getGrade() {
		return Grade;
	}

	public String getEform() {
		return Eform;
	}

	
	
	/**
	 * @param studentID
	 * @param courseID
	 * @param semesterID
	 * @param grade
	 * @param eform
	 * @param classID
	 * @param teacherID
	 */
	public Grades(String studentID, String courseID, String semesterID,
			int grade, String eform, String classID, String teacherID) {
		super();
		StudentID = studentID;
		CourseID = courseID;
		SemesterID = semesterID;
		Grade = grade;
		Eform = eform;
		ClassID = classID;
		TeacherID = teacherID;
	}

	
	/**
	 * @param studentID
	 * @param courseID
	 * @param grade
	 * @param eform
	 * @param classID
	 * @param teacherID
	 */
	public Grades(String studentID, String courseID,
			int grade, String eform, String classID, String teacherID) {
		super();
		StudentID = studentID;
		CourseID = courseID;
		Grade = grade;
		Eform = eform;
		ClassID = classID;
		TeacherID = teacherID;
	}

	public Grades() {
		// TODO Auto-generated constructor stub
	}
	/**
	 * 
	 * @param id
	 * @return
	 */
	public LinkedList<Grades> DBgetGrades(String id){
		SQL s1 = new SQL(id,41);
		s1.accept();
		LinkedList<Grades> list = (LinkedList<Grades>)s1.getMsg();
		return list;
	}
}
